/*
 * @(#)Constants.java 2011-12-07
 *
 * Copyright 2011 北龙中网（北京）科技有限责任公司. All rights reserved.
 */
package cn.shangjia.shop.config;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import cn.shangjia.common.domain.SiteSetting;

/**
 *
 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
 * @version 1.0, 2011-12-07 20:41:05
 * @since 1.0
 */
public class Constants {
	
	private Constants() {
		
	}
	
	/*
	 * 分类映射
	 */
	public static final Map<String, String> GBT_MAP = new HashMap<String, String>();
	
	/*
	 * 异步调用webservice线程池
	 */
	public static  ExecutorService webserviceExecutorService = Executors.newFixedThreadPool(10);
	
	/*
	 * 系统设置
	 */
	public static SiteSetting siteSetting = SiteSetting.getDefaultSiteSetting();
	
	/**
	 *  @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
	 */
	//------------------request attribute name -----------------------------
	public static final String USER = "_USER";
	
	public static final String USER_CONTACT = "_USER_CONTACT";
	
	public static final String COMPANY_INFO = "_COMPANY_INFO";
	
	public static final String SHOP = "_SHOP";
	
	public static final String CURRENT_USERINFO = "_CURRENT_USERINFO";
	
	public static final String SHOP_CONFIG = "_SHOP_CONFIG";
	
	//--------------------------------------------------------------
	
	public static final String MOD_HONOR = "_MOD_HONOR";
	
	public static final String MOD_NEWS = "_MOD_NEWS";
	
	public static final String MOD_DIR_SUPPLY = "_MOD_DIR_SUPPLY";
	
	public static final String MOD_DIR_BUY = "_MOD_DIR_BUY";
	
	public static final String TEMPLATE = "_TEMPLATE";
	
	public static final String SHOP_STAT_CODE = "_SHOP_STAT_CODE";
	
	//---------------------------------------------------------------
	
	public static final String ERRORS = "errors";
	
}
